<include file="Public:pageheader" />
<table id="mytable" cellspacing="0" align="center">
<script>
function xuan3()
{
    var a=new Array();
    var i;
    var c=0;
    for(i=0;i<document.getElementsByName("quanxuan[]").length;i++)
    {
    	if(document.getElementsByName("quanxuan[]")[i].checked)
      	{
       		a[c]=document.getElementsByName("quanxuan[]")[i].value;
       		c++;
    	}
    }
	if(a.length==1 )
	{
	    location.href="__URL__/edit/id/"+a;
	}
	else
	{
	    alert("请选择一个");
	}
 
}

function xuan1()
{
    var a=new Array();
    var i;
    var c=0;
    for(i=0;i<document.getElementsByName("quanxuan[]").length;i++)
    {
	    if(document.getElementsByName("quanxuan[]")[i].checked)
	    {
	       a[c]=document.getElementsByName("quanxuan[]")[i].value;
	       c++;
	    }
    }
	if(a.length==0)
	{
	   alert("至少请选择一个");
	}
	else
	{
	   location.href="__URL__/price/id/"+a;
	}
 
}

function xuan()
{
    var a=new Array();
    var i;
    var c=0;
    for(i=0;i<document.getElementsByName("quanxuan[]").length;i++)
    {
    	if(document.getElementsByName("quanxuan[]")[i].checked)
      	{
	       a[c]=document.getElementsByName("quanxuan[]")[i].value;
	       c++;
    	}
    }
	if(a.length==0)
	{
	   alert("请选择");
	}
	else
	{
	 var ss=confirm("确定删除?");
	 if(ss==true)
	 {
	   location.href="__URL__/delete/id/"+a;
	 }
	}
}
</script>
<input type="button" class="button"value="新增号" onclick="window.location.href='__URL__/add/id/{$id}'"/>
<input type="button" class="button"value="新增排" onclick="window.location.href='__URL__/addrow/id/{$id}'"/>
<input type="button" class="button"value="修改排编号" onclick="window.location.href='__URL__/editrow/id/{$id}'"/>
<input type="button" class="button"value="编辑寄存位" onclick="javascript:xuan3()"/>
<input type="button" class="button"value="批量定价" onclick="javascript:xuan1()"/>
<input type="button" class="button"value="全选" onclick="ck(true)"/>		
<input type="button" class="button"value="取消全选" onclick="ck(false)"/>
<input type="button" class="button"value="全部删除" onclick="javascript:xuan()"/>
</label>


<div>
<h3>所在位置：{$qu.name}</h3>
<volist name = 'groupname' id='vo'>{$vo.name}:

<iterate name="list" id="v">
<if condition="$v.district_id eq $vo['id']">

<input type="checkbox" name="quanxuan[]" value="{$v.id}"/>
{$v.id}&nbsp;&nbsp;<a href='__URL__/view/id/{$v.id}'>{$v.name}
<img src='__PUBLIC__/images/0{$v.hold_state_id}.gif'/> 
</a>

</if>
</iterate><br /><br />
</volist>
<br>
</div>  
<br />           
<img src='__PUBLIC__/images/hold.gif'/> 
</table>